package com.yuanrui.subject.domain.convert;

import com.yuanrui.subject.domain.entity.SubjectAnswerBO;
import com.yuanrui.subject.infra.basic.entity.SubjectMultiple;
import com.yuanrui.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目标签表(SubjectLabel)转换器
 */
@Mapper
public interface SubjectMultipleConvert {
    SubjectMultipleConvert INSTANCE = Mappers.getMapper(SubjectMultipleConvert.class);

    //BO转Entity
    SubjectMultiple convertToBoEntity(SubjectAnswerBO subjectAnswerBO);

    //MultipleListList转AnswerBoList
    List<SubjectAnswerBO> convertToAnswerBo(List<SubjectMultiple> subjectMultiple);

}
